package pl.edu.wsinf.lukaszwalczak.emailclient.repository;

import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import pl.edu.wsinf.lukaszwalczak.emailclient.pojo.Account;
import pl.edu.wsinf.lukaszwalczak.emailclient.pojo.Folder;

@Repository
public interface FolderRepository extends JpaRepository<Folder, Long> {
    
    List<Folder> findByName(String name);
    List<Folder> findByAccount(Account account);
    Folder findByAccountAndName(Account account, String name);
}
